package com.seckill.redis;

/**
 * @author yjw
 */
public class GoodsKey extends BasePrefix {

    private GoodsKey(int expireSeconds, String prefix) {
        super(expireSeconds, prefix);
    }

    public static GoodsKey getGoodsList = new GoodsKey(60, "goodsList");

    public static GoodsKey getGoodsDetail = new GoodsKey(60, "goodsDetail");

    public static GoodsKey getMiaoshaGoodsStock= new GoodsKey(0, "gs");

    public static String getGoodsKey(Long goodsId){
        return String.valueOf(goodsId);
    }

}
